function test(){
	//添加 属性
	/*var update_url = "/website/backstage/attr/add.do";
	$.ajax({
		url: update_url,
		type: 'post',
		dataType: 'json',
		//contentType: 'application/json',
		data: {attr:"QQ交流群",code:'QQ_GROUP',type:1,tagType:'TEXT',attrDesc:'站点粉丝QQ交流群'},
		success: function(data) {
			alert(data.attr.attrId);
		}
	});*/
	//删除 删除分类
	/*var update_url = "/website/backstage/category/delete.do";
	$.ajax({
		url: update_url,
		type: 'post',
		dataType: 'json',
		//contentType: 'application/json',
		data: {categoryId:6},
		success: function(data) {
			alert(data.isSuccess);
		}
	});
*/	
	//添加分类和产品关系
	/*var update_url = "/website/backstage/category/addCategoryRelAttr.do";
	$.ajax({
		url: update_url,
		type: 'post',
		dataType: 'json',
		//contentType: 'application/json',
		data: {categoryId:1,attrId:4},
		success: function(data) {
			alert(data.isSuccess);
		}
	});*/
	//添加产品
	/*var update_url = "/website/backstage/product/add.do";
	//JSON.stringify(formData)
	$.ajax({
		url: update_url,
		type: 'post',
		dataType: 'json',
		contentType : "application/json;charset=UTF-8",
		data:JSON.stringify({"partnum":'4609856',"name":'小米 红米Note4 全网通版 4GB+64GB 深灰 移动联通电信4G手机 双卡双待',"productType":'PRODUCT_BEAN',"categoryId":4,
			attrList:[{attr:{attrId:1},attrValue:{attrValueId:2}},{attr:{attrId:2},attrValue:{attrValueId:3}}
			,{attr:{attrId:3},attrValue:{attrValueId:4}},{attr:{attrId:4},attrValue:{attrValueId:5}}],
			offerPrice:{price:500.50}
		}),
		success: function(data) {
			alert(data.product.productId);
		}
	});
	*/
	
	//添加产品目录
	/*var update_url = "/website/backstage/catgroup/add.do";
	$.ajax({
		url: update_url,
		type: 'post',
		dataType: 'json',
		data: {name:"其他",code:'OTHERS',sequence:7,display:1},
		success: function(data) {
			alert(data.catgroup.catgroupId);
		}
	});*/
	
	//添加产品与目录关系
	/*var update_url = "/website/backstage/catgroup/addCatgroupRelPrd.do";
	$.ajax({
		url: update_url,
		type: 'post',
		dataType: 'json',
		data: {catgroupId:"3",productId:'10'},
		success: function(data) {
			alert(data.catgroupRelPrd.catgroupId);
		}
	});*/
	//添加销售目录
	/*var update_url = "/website/backstage/catalog/add.do";
	$.ajax({	
		url: update_url,
		type: 'post',
		dataType: 'json',
		data: {name:"素材",code:'DREW'},
		success: function(data) {
			alert(data.catalog.catalogId);
		}
	});	*/
	
	//生成订单
/*	var update_url = "/website/web/order/createOrder.do";
	$.ajax({	
		url: update_url,
		type: 'post',
		dataType: 'json',
		contentType : "application/json;charset=UTF-8",
		data: JSON.stringify({orderNo:'O2017050611002',storeId:1001,userId:2,status:"M",totalAmount:180.00,quantity:3,discount:25.5,invoiceTitle:"智子科技",mark:"请速度发货",addressId:1,
			orderItemList:[{productId:9,status:"M",price:90,totalAmount:160,quantity:2,discount:20},{productId:10,status:"M",price:25.5,totalAmount:20,quantity:1,discount:5.50}]}),
		success: function(data) {
			alert(data.order.orderId);
		}
	});	
	*/
	//取消订单
	/*var update_url = "/website/web/order/cancelOrder.do";
	$.ajax({	
		url: update_url,
		type: 'post',
		dataType: 'json',
		//contentType : "application/json;charset=UTF-8",
		data: {orderId:5,status:"X"},
		success: function(data) {
			alert(data.order.orderId);
		}
	});	*/
	
	
	//分页查询订单
	/*var update_url = "/website/web/order/list.html";
	$.ajax({	
		url: update_url,
		type: 'post',
		dataType: 'json',
		//contentType : "application/json;charset=UTF-8",
		data: {page:1,rows:10},
		success: function(data) {
			alert(data.order.orderId);
		}
	});	
	*/
	
	//生成砍价token
	/*var update_url = "/website/web/bargain/createBargainURL.do";
	$.ajax({	
		url: update_url,
		type: 'post',
		dataType: 'json',
		contentType : "application/json;charset=UTF-8",
		data:JSON.stringify({product:{productId:9,partnum:'2888224'}}),
		success: function(data) {
			alert(data.bargainLog.bargainId+">>>"+data.bargainLog.token);
		}
	});	*/
	//添加收藏
	/*var update_url = "/website/web/product/collection/add.do";
	$.ajax({	
		url: update_url,
		type: 'post',
		dataType: 'json',
		data:{productId:10,type:3},
		success: function(data) {
			alert(data.collection.collectId+">>>");
		}
	});	*/
	
	//取消收藏
	/*var update_url = "/website/web/product/collection/cancel.do";
	$.ajax({	
		url: update_url,
		type: 'post',
		dataType: 'json',
		data:{collectId:1},
		success: function(data) {
			alert(data.collection.collectId+">>>");
		}
	});	*/
	//添加附件
	/*var update_url = "/website/web/upload/accessory/add.do";
	$.ajax({	
		url: update_url,
		type: 'post',
		dataType: 'json',
		data:{accessoryType:0,name:'test2',ext:"jpg",url:"www.goole.com",
			path:"/opt/data/images/",ip:"192.168.0.252"},
		success: function(data) {
			alert(data.accessory.accessoryId);
		}
	});	*/
	
	//删除附件
	/*var update_url = "/website/web/upload/accessory/delete.do";
	$.ajax({	
		url: update_url,
		type: 'post',
		dataType: 'json',
		data:{accessoryId:3},
		success: function(data) {
			alert(data.accessory.accessoryId);
		}
	});	*/
	
	//添加评论
	/*var update_url = "/website/web/product/comment/add.do";
	$.ajax({	
		url: update_url,
		type: 'post',
		dataType: 'json',
		contentType : "application/json;charset=UTF-8",
		data:JSON.stringify({productId:10,content:"哎，借口真多，明天换个平台。",replayId:13,commentRelAccessoryList:[{accessoryId:1},{accessoryId:2}]}),
		success: function(data) {
			alert(data.comment.commentId);
		}
	});*/
	
	//删除评论
	/*var update_url = "/website/web/product/comment/delete.do";
	$.ajax({	
		url: update_url,
		type: 'post',
		dataType: 'json',
		data:{commentId:12},
		success: function(data) {
			alert(data.comment.commentId);
		}
	});*/
}